//
//  LJFNetworkingManager.h
//  networking
//
//  Created by 刘锦锋 on 16/7/20.
//  Copyright © 2016年 com.ljf. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface LJFNetworkingManager : NSObject

typedef void (^LJFAsiSuccessBlock)(id returnData,int code,NSString *msg);

typedef void (^LJFAsiFailureBlock)(NSError *error);

@property (nonatomic, assign) NSTimeInterval timeoutInterval;

+ (LJFNetworkingManager *)shareManager;

- (void)POST:(NSString *)URLString parameters:(NSDictionary *)parameters success:(LJFAsiSuccessBlock)success failure:(LJFAsiFailureBlock)failure showHUD:(UIView *)showView;

- (void)GET:(NSString *)URLString parameters:(NSDictionary *)parameters success:(LJFAsiSuccessBlock)success failure:(LJFAsiFailureBlock)failure showHUD:(UIView *)showView;

- (void)POST:(NSString *)URLString upLoadImages:(NSArray*)images parameters:(NSDictionary *)parameters success:(LJFAsiSuccessBlock)success failure:(LJFAsiFailureBlock)failure showHUD:(UIView *)showView;
- (void)POST:(NSString *)URLString parameters:(NSDictionary *)parameters success:(LJFAsiSuccessBlock)success failure:(LJFAsiFailureBlock)failure showHUD:(UIView *)showView andisJsonString:(NSString *)jsonstr;
@end
